import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// import'./styles/mobile.css';
import'./styles/index.scss'
import'./styles/quill.snow.css'
// import'./styles/quill.core.css'
import './permission'
import {hint} from './permission'
import { Cascader,Field,Popup,Picker,Toast,Dialog,DatetimePicker,Button,Form,Tab, Tabs,  } from 'vant';
import 'vant/lib/index.css';
import lrz from 'lrz'
import SignCanvas from "sign-canvas";
import {platformShow,platformAnhui} from './utils/platform.js'
import {toCode,fromCode} from './utils/keyCode.js'

import 'ant-design-vue/dist/antd.css';
import { Menu } from 'ant-design-vue';

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import upload from './components/Upload/index.js'
import field from './components/field/index.js'
import formItem from './components/formItem/index.js'

Vue.use(upload) //全局注册上传按钮
Vue.use(field) //全局注册input
Vue.use(formItem) //全局注册formItem
Vue.use(ElementUI);
Vue.use(Cascader);
Vue.use(Field);
Vue.use(Form);
Vue.use(Popup);
Vue.use(Picker);
Vue.use(DatetimePicker);
Vue.use(Menu);
Vue.use(Toast);
Vue.use(Dialog);
Vue.use(Button);
Vue.use(Tab);
Vue.use(Tabs);
// Vue.use(ImagePreview);
Vue.use(SignCanvas);
// Vue.use(vantCascader);
Vue.config.productionTip = false
Vue.prototype.$lrz = lrz  //全局图片压缩
Vue.prototype.platform = platformShow  //全局平台验证
Vue.prototype.platformAnhui = platformAnhui  //全局平台验证
Vue.prototype.$toCode = toCode  //字符串加密
Vue.prototype.$fromCode = fromCode  //字符串解密
Vue.prototype.$hint = hint()  //全局提示

new Vue({
  router,
  store,
  render: h =>{
    Vue.prototype.$createElement = h
    return  h(App)
  },
}).$mount('#app')
